import {get,post} from '@/utils/request'

export function authList(params) {
  return get('/sysUser/authList.json',
    params)
}

export function treeList() {
  return get("/sysUser/treeList.json",{status: 0})
}

export  function  roleResource(roleId) {
  return get("/sysUser/resourceCodeByRoleId.json",{roleId:roleId})
}

export function  roleEdit(params) {
  return post("/sysUser/roleEdit.json",params)
}

export  function  updateRoleStatus(id) {
  return post("/sysUser/updateRoleStatus.json",{roleId:id})
}

export function  delRole(id) {
  return post("/sysUser/delRole.json",{id:id})
}


